﻿#ifndef Header_Guard_GUID__3EA1BF53_251C_4BEC_A31D_9E437386DD79
#define Header_Guard_GUID__3EA1BF53_251C_4BEC_A31D_9E437386DD79

#include <cstdint>

/** @brief gbk中所包含的符号双向查找，UTF16与GB-2byte */
uint16_t _search_gb2_symbol_by_u16(uint16_t code);
uint16_t _search_u16_symbol_by_gb2(uint16_t code);

/** @brief  GBK中所收录的双字节汉字的双向查找，UTF16与GB-2byte */
uint16_t _search_gbk_by_u16(uint16_t code);
uint16_t _search_u16_by_gbk(uint16_t code);

/** @brief GB18030-2000 extend A所收录的四字节汉字的双向查找，UTF16与GB-4byte */
uint32_t _search_gb4A_by_u16(uint16_t code);
uint16_t _search_u16_by_gb4A(uint32_t code);

/** @brief GB18030-2005 extend B所收录的四字节汉字的双向查找，UTF32(或双UTF16组合)与GB-4byte */
#if !defined(DISABLE_GB18030_2005_CONV)
	uint32_t _search_gb4B_by_u32(uint32_t code);
	uint32_t _search_u32_by_gb4B(uint32_t code);
#endif

#endif // Header_Guard_GUID__3EA1BF53_251C_4BEC_A31D_9E437386DD79